/* 祝福墙页面样式 */
.wishes-header {
    text-align: center;
    padding: 40px 0 20px;
}

/* 添加祝福卡片 */
.add-wish-card {
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(255, 107, 155, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 颜色选择器 */
.color-selection {
    margin-top: 10px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-option.selected {
    transform: scale(1.2);
    border-color: var(--dark);
}

/* 祝福展示区 */
.wishes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.wish-card {
    position: relative;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: rotate(var(--rotation, 0deg));
    animation: float var(--float-duration, 6s) ease-in-out infinite;
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--card-color, var(--primary));
}

.wish-card:hover {
    transform: rotate(0deg) scale(1.05) translateY(-5px);
    z-index: 20;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wish-author {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--card-color, var(--primary));
}

.wish-content {
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.wish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.wish-date {
    opacity: 0.8;
}

.wish-heart {
    color: var(--card-color, var(--primary));
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 60px;
    color: #E5E7EB;
    margin-bottom: 20px;
}

.empty-text {
    color: var(--gray);
    font-size: 1.2rem;
}

/* 成功提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green);
    color: white;
    padding: 12px 25px;
    border-radius: 999px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* 背景蛋糕装饰 */
.background-cake {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 60%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.2;
    display: none;
}

/* 动画 */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
}

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wishes-container {
        grid-template-columns: 1fr;
    }
    
    .add-wish-card {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .background-cake {
        display: block;
    }
}
